package com.itheima.d1_polymorphism;

public class Demo01 {
    public static void main(String[] args) {
        // 目标：认识多态
        //答：有继承/实现关系，对象、行为多态
        //对象多态
        People p = new People();
        People p1 = new Student();
        People p2 = new Teacher();
        //方法多态
        p.run();
        p1.run();
        p2.run();

    }
}
